
/* api返回样式 */
a {
    color: white;
    transition: all 0.3s ease;
}
a:hover {
    text-decoration: none;
}
.course {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    width: calc(33% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.course img {
    max-width: 100%;
    border-radius: 8px 8px 0 0;
}
.course h3 {
    font-size: 18px;
    margin: 10px 0;
}
.course p {
    font-size: 14px;
    color: #666;
}
.course a {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}
.course a:hover {
    background-color: #0056b3;
}
.refresh-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}
.refresh-button:hover {
    background-color: #218838;
}

.course-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

/* 视频点击样式 */
.video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.video-overlay.active {
    display: flex;
}
.video-container {
    position: relative;
    width: 80%;
    max-width: 800px;
}
.video-container video {
    width: 100%;
    height: auto;
}
.close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 30px;
    color: white;
    border: none;
    background: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: 10px;
}
